package com.iqik.sc.ns.service;


import com.iqik.sc.ns.service.fallback.EmailServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-email", fallback = EmailServiceFallback.class, path = "/email")
public interface EmailServer {

    @RequestMapping("/{email}/{code}")
    String sendCode(@PathVariable(value = "email") String email,
                    @PathVariable(value = "code") String code);

}
